import request from '@/utils/request'

// 查询结算信息列表
export function listSettleAccountInfo(query) {
  return request({
    url: '/noAuth/merchantRegister/settleAccountInfo/list',
    method: 'get',
    params: query
  })
}

// 查询结算信息详细
export function getSettleAccountInfo(id) {
  return request({
    url: '/noAuth/merchantRegister/settleAccountInfo/' + id,
    method: 'get'
  })
}

// 新增结算信息
export function addSettleAccountInfo(data) {
  return request({
    url: '/noAuth/merchantRegister/settleAccountInfo',
    method: 'post',
    data: data
  })
}

// 修改结算信息
export function updateSettleAccountInfo(data) {
  return request({
    url: '/noAuth/merchantRegister/settleAccountInfo',
    method: 'put',
    data: data
  })
}

// 删除结算信息
export function delSettleAccountInfo(id) {
  return request({
    url: '/noAuth/merchantRegister/settleAccountInfo/' + id,
    method: 'delete'
  })
}

// 获取地区
export function getRegionRoot(query) {
  return request({
    url: '/noAuth/getArea',
    method: 'get',
    params: query
  })
}

// 获取银行编码
export function getBanks(query) {
  return request({
    url: '/noAuth/banks',
    method: 'get',
    params: query
  })
}
// 获取银行支行
export function getBranchs(query) {
  return request({
    url:  '/noAuth/branchs',
    method: 'get',
    params: query
  })
}
